import request from '../utils/request';

export const login = ({ mobile, code }) => {
  return request({
    method: 'POST',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code,
    },
  });
};

// 获取个人信息

export const getUserInfoAPI = () => {
  return request({
    url: '/v1_0/user/profile',
  });
};
